/**
 * Created by liuqingxia on 2016/3/31.
 */

/**
 *获取鼠标x轴位置
 * @param e
 * @returns {Number|pageX|*}
 */
function getMouseX(e) {
    e = e || window.event;

    return e.pageX || e.clientX + document.body.scrollLeft;
}

/**
 *获取鼠标y轴位置
 * @param e
 * @returns {Number|pageY|*|a.originalEvent.pageY}
 */
function getMouseY(e) {
    e = e || window.event;
    return e.pageY || e.clientY + document.body.scrollTop;
}